package org.niugang.bean;



/**
 * 页面对象
 * 
 * @author niugang
 *
 */
public class Page {
	/**
	 * 页码
	 */
	private int pageNo = 1;
	/**
	 * 页面大小
	 */
	private int pageSize =10;
	/**
	 * 总页数
	 */
	private int totalPage;

	/**
	 * 总记录数
	 */
	private int totalCount;

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalPage() {
		if (totalCount % pageSize == 0) {
			return totalCount / pageSize;
		}
		return totalCount / pageSize + 1;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}


}

